/* __auth__ : KunLin */
package com.cskaoyan.bean.bo.goods;

import lombok.Data;

@Data
public class GoodsListBO {
    // page=1&limit=20&goodsSn=12121&name=%E5%9B%9B&sort=add_time&order=desc&goodsId=1221

    private Integer page;

    private Integer limit;

    private String goodsSn;

    private String name;

    private String sort;

    private String order;

    private Integer goodsId;

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public String getGoodsSn() {
        return goodsSn;
    }

    public void setGoodsSn(String goodsSn) {
        this.goodsSn = goodsSn;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
        if ("add_time".equals(sort)){
            this.sort = "addTime";
        }
    }

    public String getOrder() {
        return order;
    }

    public void setOrder(String order) {
        this.order = order;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }
}
